package com.hshx.client;

import com.hshx.VO.JobClassVo;
import com.hshx.pojo.Job_classification;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "gateway",
                path = "/systemService",
                contextId = "Job-classificationClient")
public interface Job_classificationClient {
    @RequestMapping("/addJob_classificationOne")
    boolean addJob_classificationOne(@SpringQueryMap Job_classification job_classification);

    @RequestMapping("/removeJob_classification")
    boolean removeJob_classification(@RequestParam(name = "job_classification_id") int job_classification_id);

    @RequestMapping("/updateJob_classification")
    boolean updateJob_classification(@SpringQueryMap Job_classification job_classification);

    @RequestMapping("/getAllJob_classification")
    List<Job_classification> getAllJob_classification();

    @RequestMapping("/getJob_classification")
    Job_classification getJob_classification(@RequestParam(name = "job_classification_id") int job_classification_id);

    @RequestMapping("/getJobClassVoList")
    List<JobClassVo> getJobClassVoList();
}
